package com.ruoyi.asms.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 维护方维护资产信息对象 asms_maintenance_asset
 * 
 * @author yfkj
 * @date 2021-10-21
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AsmsMaintenanceAsset extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    /** 维护方维护资产信息主键 */
    @TableField(exist = true)
    @TableId(type= IdType.AUTO)
    @ApiModelProperty(value =  "${comment}")
    private Long maintenanceAssetId;
    /** 负责维护该资产的维护公司 */
    @Excel(name = "负责维护该资产的维护公司")
    @TableField(exist = true)
    @ApiModelProperty(value =  "负责维护该资产的维护公司")
    private Long maintenanceDeptId;
    /** 资产 */
    @Excel(name = "资产")
    @TableField(exist = true)
    @ApiModelProperty(value =  "资产")
    private Long assetId;
    /** 开始维护时间 */
    @Excel(name = "开始维护时间")
    @TableField(exist = true)
    @ApiModelProperty(value =  "开始维护时间")
    private Long startUseTime;
    /** 截止维护时间 */
    @Excel(name = "截止维护时间")
    @TableField(exist = true)
    @ApiModelProperty(value =  "截止维护时间")
    private Long endUseTime;
    /** 是否删除(0删除，1正常) */
    @Excel(name = "是否删除(0删除，1正常)")
    @TableField(exist = true)
    @ApiModelProperty(value =  "是否删除(0删除，1正常)")
    private Integer isDelete;
    /** 可能的附件信息 */
    @Excel(name = "可能的附件信息")
    @TableField(exist = true)
    @ApiModelProperty(value =  "可能的附件信息")
    private String attachments;
    @TableField(exist = true)
    @ApiModelProperty(value =  "绑定者")
    private Long bindUserId;
    public static final String MAINTENANCE_ASSET_ID="maintenance_asset_id";
    public static final String MAINTENANCE_DEPT_ID="maintenance_dept_id";
    public static final String ASSET_ID="asset_id";
    public static final String START_USE_TIME="start_use_time";
    public static final String END_USE_TIME="end_use_time";
    public static final String IS_DELETE="is_delete";
    public static final String ATTACHMENTS="attachments";
    public static final String CREATE_BY="create_by";
    public static final String CREATE_TIME="create_time";
    public static final String UPDATE_BY="update_by";
    public static final String UPDATE_TIME="update_time";
    public static final String REMARK="remark";
    public static final String BIND_USER_ID="bind_user_id";
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("maintenanceAssetId", getMaintenanceAssetId())
            .append("maintenanceDeptId", getMaintenanceDeptId())
            .append("assetId", getAssetId())
            .append("startUseTime", getStartUseTime())
            .append("endUseTime", getEndUseTime())
            .append("isDelete", getIsDelete())
            .append("attachments", getAttachments())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
